<?php $arr = explode(",",$forum[$thread_data['fid']]['forumg']); ?>
{if IS_LOGIN }
    {if $thread_data['uid'] != $user['id'] && array_search($user['id'],$arr)}
    <a class="t-user label label-danger" onclick="del_thread({$thread_data.id},'thread')" >删除主题</a>
    {/if}

    {if array_search($user['id'],$arr) || $user['group'] == C("ADMIN_GROUP")}
        {if $thread_data['top'] == 1}
        <a class="t-user label label-danger" onclick="thread_top({$thread_data.id},'off',1)" >取消板块置顶</a>
        {else}
        <a class="t-user label label-success" onclick="thread_top({$thread_data.id},'on',1)" >板块置顶</a>
        {/if}
    {/if}

{/if}
